home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
UTIL
/
FILEUTIL
/
SUPPORT100
/
ReadMe
Wrap
Text File
|
1995-02-05
|
9KB
|
210 lines
==========================
Splitf/Joinf Version 1.13
==========================
****************************** Copyright Notice ******************************
* *
* This software is copyright Adam Hamilton. *
* Permission to use, copy, and distribute splitf, joinf and the source *
* code, for non-commercial purposes, is hereby granted, provided:- *
* *
* • No charge is made other than to cover the cost of the medium. *
* *
* • All files and documents are included in the distribution unaltered. *
* *
* You may upload this software to a Bulletin Board, or include it in *
* your Public Domain library. If you do this, please try and let me *
* know, so I can keep you up to date with any future changes. *
* The authors permission must be obtained before this software is *
* included on any magazine disk, or with any other software. *
* *
* You may not sell this software, or use it otherwise for personal gain. *
* *
* If you change any part of this software, you must obtain permission *
* from the author, before distribution. *
* *
* This program is supplied 'as is' with no guarantee of its suitability *
* for any purpose. I will not be held responsible for any damage arising *
* from the use or misuse of this software. *
* *
* I reserve the right to change these terms and conditions at any time. *
* *
******************************************************************************
Contacting The Author
~~~~~~~~~~~~~~~~~~~~~
Bug reports, comments and any donations may be sent to me, the author,
at this address :-
Adam Hamilton,
23 Northmeadow Road,
Cricklade,
Swindon,
Wiltshire, SN6 6LT,
England.
I may also be contacted by E-Mail: aph@swindon.gpsemi.com
================================================================================
1 Introduction
Splitf and Joinf were written to support the Acorn desktop application
!Split. The purpose of these programs is to ease the transportation of large
files from one computer to another. No attempt to compress the file is made,
as it is assumed this has already been done. Splitf will split a file into a
number of smaller files, and Joinf will join them again when required.
2 How To Use Splitf
Usage : Splitf [options] <filename>
Options supported are outlined below (they may be abbreviated):-
-filesize n Where n is the maximum size of each part in K (1024
bytes).
-buffersize n Where n is the buffer size in K (1024 bytes)¹.
-path p Where p is the path (absolute or relative) to put the
parts.
-interactive This option allows you to specify a different
destination for each part. This is useful if saving
directly to several floppy disks.
For example, if we have a file called 'Picture' 2 Mbytes long and we want
to split it up to fit on two 1.44 Mb DOS formatted floppy disks. We would
use the following command:-
Splitf -f 1423 -b 1024 -i Picture
This uses 1 Mb of RAM for a buffer¹, and would prompt you for each path,
allowing you to change floppy disks in between.
¹ This option is not available on the PC version.
3 How To Use Joinf
Usage : Joinf [options] <filename>
-buffersize n Where n is the buffer size in K (1024 bytes)¹.
-filename f Where f is the new name of the file.
-interactive This option allows you to specify a different location
of each part.
-info This option just provides you with information about the
files without actually joining them.
For example, if we want to join the two files in the above example, we would
use the command:-
Joinf -b 512 -i A:Picture01
Note that A:Picture01 is the filename of the first part.
¹ This option is not available on the PC version.
4 Compiling The Source Code
To compile the source code, you'll need an ANSI C compiler. You must copy the
config file to suit your machine, to 'config.h'. There are four supplied, if
none of these match your machine, take a look inside them, it shouldn't be
too hard to work out what the bits mean. If you have any problems just ask.
I have provided executable files for a number of machines, just in case you
don't have access to a compiler.
5 History
• Version 1.00-1.08 These were the original command line versions compiled
on several different computers.
• Version 1.10 This version has a new file format, a header is put at
the beginning of each part, and is used to join files in
the correct order. This version is compatible with the
desktop version (2.00 and greater).
• Version 1.11 Slightly increased memory allocation for filenames, and
added a small check needed for DEC Ultrix compilers.
• Version 1.12 Added -interactive option to allow direct reading and
writing of floppy disks. This option enables different
paths to be given for each part, removing the need, for
example, to load all the parts onto the hard disk before
joining.
• Version 1.12c Supports official Acorn filetype.
• Version 1.13 Modified the Acorn specific bits to speed up file
access. Also tidied and commented the code a lot more.
NOTE: The only executables changed from version 1.12
are the Acorn ones, therefore I have only compiled
this version for these machines.
6 Files supplied
The following files are supplied:-
Source (directory) Contains...
Splitf.c Source for Splitf.
Joinf.c Source for Joinf.
acorn.h Config file for Acorn machines.
pc.h Config file for PCs.
unix.h Config file for UNIX platforms.
vax.h Config file for VAX/VMS machines.
ACORN (directory) Contains executables for Acorn machines.
ALPHA (directory) Contains executables for DEC Alpha machines.
HP-UX (directory) Contains executables for HP PA-Risc workstation.
LINUX (directory) Contains executables for LINUX.
NeXT (directory) Contains executables for NeXT machines.
OS9 (directory) Contains executables for OS9.
PC (directory) Contains executables for DOS.
RS6000 (directory) Contains executables for AIX on IBM RS6000 machines.
SGI (directory) Contains executables for Silicon Graphics machines.
SUN (directory) Contains executables for SunOS.
ULTRIX (directory) Contains executables for DEC ultrix machines.
VAX (directory) Contains executables for VAX/VMS.
7 Acknowledgments
Thanks to the following people for compiling Splitf and Joinf on machines I
don't have access to:-
Graham Jones (graham@robots.ox.ac.uk) - DEC Alpha (OSF1) and Silicon
Graphics (IRIX).
Andrew Moore (ajm-b@minster.york.ac.uk) - IBM RS6000 (AIX).
Mike Borcherds (borchrds%teaching.physics@ox.ac.uk) - NeXT.
Timothy Lister (tal@st-andrews.ac.uk), and
David Given (dtrg@st-andrews.ac.uk) - Linux.
John Baraclough (R18926@WACCVM.corp.mot.com) - OS9.
I would like to thank Sergio Monesi for his suggestion on speeding up file
operations for Acorn machines.
================================================================================